# -*- coding:utf-8 -*-
from .ext_sqlalchemy import db
from .ext_migrate import migrate
from .ext_middleware import middleware
from .ext_errorhandler import errorhandler
from .ext_logging import init_log


def init_ext(app):
    db.init_app(app)
    migrate.init_app(app, db)
    middleware.init_app(app)
    errorhandler.init_app(app)